#include "SkinAnimation.h"

SkinAnim::SkinAnim(const char* filename)
{
	name = ExtractFileName(filename);

	FILE *f=0;

	errno_t err = fopen_s(&f,filename,"rb");

	if(err==0)
	{
		int version = -1;
		fread(&version,4,1,f);

		if(version<0)
			throw;
	}
	else
	{
		DEBUG_WARNING("error loading skin animation");
	}
}

SkinAnim::~SkinAnim()
{
	delete[] name;
	delete[] frames;
}
